/**
 * Created by cz on 2017/5/6.
 */
export default class ArrayUtils{
    static updataArray(array,data){
        for(var i=0,len=array.length;i<len;i++){
            var temp = array[i];
            if(temp === data){
                array.splice(i,1);
                return;
            }
        }
        array.push(data);
    }
}